<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
	<script>
		function fun(m,n){
			var sum = 0;
			for(var i=m;i<=n;i++){
				sum = sum+i;
			}
			return sum;
		}
		alert(fun(1,100));
	</script>
</html>
